<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<head><title>Edit answer</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link href="css/common.css" rel="stylesheet" type="text/css">
</head>

<body>
<f:view>
    <f:loadBundle basename="ResourceBundle" var="bundle"/>
    <h:form id="addNewBannerForm">
        <div align="center">
            <div style="position:absolute;left:40%;width:384px; top:10%; height: 500px;background: #e8e7e9">
                <h2><strong>Answer</strong></h2>

                <div style="position:absolute;top: 45px;left: 10%; width: 80%; height: 80%;background: #7ccff5">
                    <br>
                    <h:outputText value="#{bundle.messageId}" styleClass="labels"/>
                    <h:inputText value="#{feedbackBean.messageId}" styleClass="fields" readonly="true"/>
                    <br><br>
                    <h:outputText value="#{bundle.MSISDN}" styleClass="labels"/>
                    <h:inputText value="#{feedbackBean.MSISDN}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.notification}" styleClass="labels"/>
                    <h:selectOneMenu styleClass="fields" value="#{feedbackBean.choosedNotification}">
                        <f:selectItems value="#{feedbackBean.notificationList}"/>
                    </h:selectOneMenu>
                    <br><br>
                    <h:outputText value="#{bundle.question}" styleClass="labels"/>
                    <br>
                    <h:inputTextarea value="#{feedbackBean.question}"
                                     style=" position: absolute; float: left; right:2%; width: 90%;"/>
                    <br><br><br>
                    <h:outputText value="#{bundle.answer}" styleClass="labels"/>
                    <br>
                    <h:inputTextarea value="#{feedbackBean.answer}"
                                     style=" position: absolute; float: left; right:2%; width: 90%;"/>
                    <br><br><br><br>
                    <h:panelGrid columns="2" width="100%">
                        <h:commandButton value="#{bundle.saveButton}" action="#{feedbackBean.saveEditedAnswer}"
                                         styleClass="add-content-save-cancel"/>
                        <h:commandButton value="#{bundle.cancelButton}" action="#{feedbackBean.toFeedback}"
                                         styleClass="add-content-save-cancel"/>
                    </h:panelGrid>
                </div>

            </div>
        </div>
    </h:form>
</f:view>

</body>
</html>
